import React, { memo } from "react";
import { Link } from "react-router-dom";
import { Image, Button } from "antd";

import { HomeWrapper } from "./style";

const Home = memo(() => {
  return (
    <HomeWrapper>
        <h2>首页</h2>
        <Image.PreviewGroup>
          <Image
            width={200}
            src="https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"
          />
        </Image.PreviewGroup>
        <p ></p>
        <Button type="primary">
          <Link to={"/login"}>登录</Link>
        </Button>
    </HomeWrapper>
  );
});

export default Home;
